package com.group9.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class FruitCart {
    private Integer cartId;

    private Integer customerId;

    private Integer fruitId;

    private Integer fruitAmount;

    private BigDecimal realPrice;

    private Date addTime;

    private Byte cartStatus;

    private String other1;

    private String other2;

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getFruitId() {
        return fruitId;
    }

    public void setFruitId(Integer fruitId) {
        this.fruitId = fruitId;
    }

    public Integer getFruitAmount() {
        return fruitAmount;
    }

    public void setFruitAmount(Integer fruitAmount) {
        this.fruitAmount = fruitAmount;
    }

    public BigDecimal getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(BigDecimal realPrice) {
        this.realPrice = realPrice;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Byte getCartStatus() {
        return cartStatus;
    }

    public void setCartStatus(Byte cartStatus) {
        this.cartStatus = cartStatus;
    }

    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1 == null ? null : other1.trim();
    }

    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2 == null ? null : other2.trim();
    }

    @Override
    public String toString() {
        return "FruitCart{" +
                "cartId=" + cartId +
                ", customerId=" + customerId +
                ", fruitId=" + fruitId +
                ", fruitAmount=" + fruitAmount +
                ", realPrice=" + realPrice +
                ", addTime=" + addTime +
                ", cartStatus=" + cartStatus +
                ", other1='" + other1 + '\'' +
                ", other2='" + other2 + '\'' +
                '}';
    }
}